package com.example.library.http;


import java.util.List;

import io.reactivex.Observable;
import io.reactivex.Observer;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by dadong on 2018/8/17.
 * Describe:
 */
public interface ApiService {
    //http://172.16.41.235:2048/api/ZXYYTS/W_ZXYYTS_GetCourseware?levelCode=B&knowledge=hello
    @GET("api/ZXYYTS/W_ZXYYTS_GetCourseware")
//    Observable<KnowledgeParseEntity> getKnowLedgeParse(@Query("knowledge") String knowledge, @Query("levelCode") String levelCode);
    Observable<KnowledgeParseEntity> getKnowLedgeParse(@Query("DictString") String DictString);


    @GET("api/ZXYYTS/W_ZXYYTS_GetCoursewareByCode")
//    Observable<KnowledgeParseEntity> getKnowLedgeParse(@Query("knowledge") String knowledge, @Query("levelCode") String levelCode);
    Observable<KnowledgeParseEntity> getKnowLedgeParseByCode(@Query("DictString") String DictString);


    //http://172.16.41.235:2048/api/ZXYYTS/W_ZXYYTS_KnowledgePointRecognition?text=I love you&stageNo=B
    @GET("api/ZXYYTS/W_ZXYYTS_KnowledgePointRecognition")
    Observable<List<KnowledgeEntity>> getKnowledge(@Query("DictString") String DictString);

}
